package com.xiaoshuidi.cloud.module.finance.controller.admin.finance.vo.account;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class FinanceAccountBalanceWarningReqVO {
    @NotNull(message = "预警值不能为空")
    @Schema(description = "预警值")
    private BigDecimal warningValue;
    private String remark;
    @NotBlank(message = "custType不能为空")
    @Schema(description = "账户类型INDIVIDUAL(\"个人\"), COMPANY(\"企业\");")
    private String custType;
    @NotNull(message = "通知时间间隔(小时)不能为空")
    @Min(value = 1, message = "通知时间间隔(小时)最小为1")
    @Schema(description = "通知时间间隔(小时)")
    private Integer notificationInterval;
}
